package com.func.domain.activity.service.quota;

import com.func.domain.activity.model.entity.ActivityCountEntity;
import com.func.domain.activity.model.entity.ActivityEntity;
import com.func.domain.activity.model.entity.ActivitySkuEntity;
import com.func.domain.activity.repository.IActivityRepository;
import com.func.domain.activity.service.quota.rule.factory.DefaultActivityChainFactory;
import lombok.AllArgsConstructor;

/**
 * <p>
 * RaffleActivitySupport
 * </p>
 *
 * @author Simon
 * @version 2025.03.12.1.0.0
 * @description 活动抽奖数据支撑类, 在仓储层和业务层之间再加上一层抽象
 * 更方便使用仓储层的接口
 * @since 2025-03-12
 */

@AllArgsConstructor
public class RaffleActivitySupport {
    protected IActivityRepository activityRepository;
    protected DefaultActivityChainFactory defaultActivityChainFactory;


    ActivitySkuEntity queryActivitySku(Long sku){
        return activityRepository.queryActivitySku(sku);
    }

    ActivityEntity queryActivityByActivityId(Long activityId){
        return activityRepository.queryRaffleActivityByActivityId(activityId);
    }

    ActivityCountEntity queryActivityCountByActivityCountId(Long activityCountId){
        return activityRepository.queryActivityCountByActivityCountId(activityCountId);
    }
}
